#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @File    : production.py
# @Author  : Alisen
# @Date    : 2021-09-10
# @Desc    :
from settings._default import Config


class SitConfig(Config):
    DEBUG = False

    ENV_NAME = 'sit'

    MYSQL_HOST: str = "120.31.140.133"
    MYSQL_PORT: int = 3312
    MYSQL_PASSWORD = 'nfWWfpRqqPMuV'
    MYSQL_USER = 'crawler'
    MYSQL_DATABASE = 'xhs_crawler_test'

    # 采集
    MYSQL_SDW_HOST: str = 'syzh.mysql.proxy'
    MYSQL_SDW_PORT: int = 3320
    MYSQL_SDW_PASSWORD = 'nfWWfpRqqPMuV'
    MYSQL_SDW_USER = 'crawler'
    MYSQL_SDW_DATABASE = 'db_syzh_sandworm_crawler'

    AWS_PROXY_ID = 'ss-dev-aws'
    TRANS_PROXY_FROM = 'rhino'

    # 测试key
    ROBOT_KEY = '3810a0c7-0098-46fe-8221-d598af9934c7'
    DOUYIN_ROBOT_KEY = '8cf1cd80-d289-420f-b222-aaa88f239aa7'

    SCREEN_PASSWORD = 'Aa123456'

    DIANPLAYER_PATH = "F:\\leidian\\LDPlayer64\\"

    FLASK_ENV = 'sit'
    FLASK_DEBUG = True

    REDIS_SINGLE = "172.16.71.199|13001||0|5"
    REDIS_CLUSTER_HOST = '172.16.71.199'
    REDIS_CLUSTER_PORT = 13000
    REDIS_CLUSTER_PASSWORD = 'QmmP4ahwSgXaeRis'
    REDIS_CLUSTER = [{"host": "172.16.71.199", "port": 13000, 'password': 'QmmP4ahwSgXaeRis'}]
    HK_REDIS_CLUSTER = [{"host": "172.16.71.199", "port": 13000, 'password': 'QmmP4ahwSgXaeRis'}]

    BOOTSTRAP_SERVERS = 'fs-syzh-bare-sit3:6667'
    HK_BOOTSTRAP_SERVERS_2 = 'fs-syzh-bare-sit3:6667'

    SEKIRO_URL = 'http://syzh-sandworm-sekiro-demo:5620/business-demo/invoke'
    SEKIRO_DEVICES_URL = 'http://syzh-sandworm-sekiro-demo:5620/business-demo/clientQueue?group=translate-google'

    SPLASH_URL = 'http://172.18.24.213:32671'

    # 小红书业务侧接口地址
    PROD_URL = 'https://xhstool-sit.datatell.com.cn/api'

    SKYWALKING_URL = 'skywalking-oap.monitoring.svc:11800'

    ES_URL = ['https://es-banyan.datastory.com.cn/']
    ES_USERNAME = 'banyan-custom'
    ES_PWD = 'banyan-custom-zxcv'

    RHINO_API_HOST = 'https://rhinotmp.dt-int.cn'
